package com.aaa.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


import java.util.HashMap;
import java.util.Map;

@RestController
public class FallbackController {

    @RequestMapping("/notFound")
    public Map<String,Object> fallback(){
        Map<String,Object> map=new HashMap<String,Object>();
        map.put("code","404");
        map.put("message","路径不正确");
        return map;

    }

}
